package com.lbb.springboot.entity.enums;

import com.baomidou.mybatisplus.core.enums.IEnum;
import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * 测试枚举
 */
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum PayTypeEnum implements IEnum<Integer> {

    //           html += '<option value="1">旭利849</option>';
    //            html += '<option value="2">北斗688</option>';
    //            html += '<option value="3">农行678</option>';
    //            html += '<option value="4">现金</option>';
    //            html += '<option value="5">夏生</option>';
    XULI(1, "旭利849"),

    BEIDOU(2, "北斗688"),

    AGRICULTURAL(3, "农行678"),

    CASH(4, "现金"),

    XIASHENG(5, "夏生"),
    WECHAT(7, "微信"),
    BALANCE(9, "余额"),
    INTEGRA(8, "卡券"),

    COLLECTION(6, "师傅代收");

    private Integer value;
    private String desc;

    PayTypeEnum(final Integer value, final String desc) {
        this.value = value;
        this.desc = desc;
    }

    @Override
    public Integer getValue() {
        return this.value;
    }

    public String getDesc() {
        return this.desc;
    }
}
